package com.woniu.mygitte.service.impl;



import com.woniu.mygitte.entity.User;
import com.woniu.mygitte.mapper.UserMapper;
import com.woniu.mygitte.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User findUserByName(String name) {
        return userMapper.selectUsersByName(name);
    }

    @Override
    public User findUserName(String name) {
        return userMapper.selectUsersByName(name);
    }

    @Override
    public Integer inSertUser(User user) {
        return userMapper.insertUser(user);
    }
}
